package org.dey.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dey.pojo.Exercise;
import org.dey.pojo.PageVo;


public interface ExerciseService extends IService<Exercise> {
    //查
    public PageVo<Exercise> queryExercise(Exercise exercise,int pageNum, int pageSize);

    //添加
    public int insertExercise(Exercise exercise);

    //删除
    public int deleteExercise(int id);

    //修改前先根据id查到该数据
    public Exercise queryExerciseByid(int id);

    //根据id修改
    public int updateExercise(Exercise exercise);

}
